<template>
  <el-config-provider :locale="locale">
    <!-- <router-view /> -->
    <router-view v-slot="{ Component }">
      <component :is="Component" v-if="$route.meta.keepAlive == false" />
      <keep-alive :max="10" v-else>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </el-config-provider>
</template>
<script setup lang="ts">
import locale from 'element-plus/es/locale/lang/zh-cn'

const goLogin = () => {
  // window.history.pushState(null, "", "/login");
  window.history.pushState(
    {
      user: {},
    },
    '',
    '/login'
  )
}
</script>
<style lang="less">
#rm-web {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #2c3e50;
  min-width: 1020px;
  padding-bottom: 50px;
}
</style>
